package com.sphd.emanu.activity.storagemanage;

import com.sphd.emanu.mvp.BasePresenter;
import com.sphd.emanu.mvp.BaseView;
import com.sphd.emanu.pojo.material.Storage;

import java.util.List;

import cn.pedant.SweetAlert.SweetAlertDialog;

/**
 * MVPPlugin
 *  邮箱 784787081@qq.com
 */

public class StorageManageContract {
    interface View extends BaseView {

        void setStorageList(List<Storage> storageList);

        void setDelRes(int res, Integer pos, SweetAlertDialog sweetAlertDialog);

        void setAddUpRes(int res);
    }

    interface  Presenter extends BasePresenter<View> {
        void selectStorage(int id);
        void addStorage(Integer sn,String name,String fullName,Long volume,int org);
        void updateStorage(int id,Integer sn,String name,String fullName,Long volume,int org);
        void deleteStorage(int id, Integer pos, SweetAlertDialog sweetAlertDialog);

    }
}
